/* This file is part of the Zenipex Library.
* Copyleft (C) 2008 Mitchell Keith Bloch a.k.a. bazald
*
* This source file is simply under the public domain.
*/

#include <zenilib.h>

#include <iostream>
#include <fstream>
#include <time.h>

#include "TitleState.h"

using namespace std;
using namespace Zeni;

static vector<string> g_args;

namespace Zeni {

  Gamestate_One::Gamestate_One(const vector<string> * const args) {
#ifdef GRAB_MOUSE
    SDL_WM_GrabInput(SDL_GRAB_ON);
#endif
#ifdef HIDE_MOUSE
    SDL_ShowCursor(0);
#endif

    if(args)
      g_args = *args;

    get_Textures();
    get_Fonts();
    get_Sounds();
  }

  Gamestate_One::~Gamestate_One() {
  }

  void Gamestate_One::perform_logic() {
    Game &gr = get_Game();
	Zeni::get_Video().set_title("Cerebral Conquest");
	srand(time(NULL));
    gr.pop_state();
    gr.push_state(new TitleState());
  }

}
